home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / biblio / bibtex / ms-dos / kempson / 8bit-beta / 00readme.txt < prev    next >
Text File  |  1995-01-22  |  18KB  |  452 lines

  1. ******************************************************************************
  2. ******************************************************************************
  3. **
  4. **  ARCHIVE HEADER INFORMATION
  5. **
  6. **  @Text-file{
  7. **      filename    = "00readme.txt",
  8. **      version     = "0.01",
  9. **      date        = "09 November 1993",
  10. **      time        = "21:13:31 GMT",
  11. **
  12. **      author      = "Niel Kempson",
  13. **      address     = "25 Whitethorn Drive, Cheltenham, GL52 5LL, England",
  14. **      telephone   = "+44-242 579105",
  15. **      FAX         = "+44-242 579105",
  16. **      email       = "kempson@snowyowl.co.uk (Internet)",
  17. **
  18. **      supported   = "yes",
  19. **      archived    = "at all good CTAN sites, including:
  20. **                         ftp.tex.ac.uk
  21. **                         ftp.uni-stuttgart.de
  22. **                         shsu.edu
  23. **
  24. **      abstract    = "A 32-bit implementation of BibTeX v0.99c for MS-DOS,
  25. **                     and 32 bit OS/2.  This C language implementation is 
  26. **                     based on the original WEB source but it has been 
  27. **                     enhanced to support 8-bit input characters and it
  28. **                     has a very large processing capacity.
  29. **
  30. **                     For documentation describing how to use and build
  31. **                     this program, see the 00README.TXT file that
  32. **                     accompanies this distribution.",
  33. **
  34. **      keywords    = "BibTeX, 8-bit, MS-DOS, OS/2",
  35. **
  36. **      codetable   = "ISO/ASCII",
  37. **      checksum    = "",
  38. **
  39. **      docstring   = "This module describes the files distributed as part of
  40. **                     the 8-bit BibTeX collection.
  41. **
  42. **                     The checksum field above contains a CRC-16
  43. **                     checksum as the first value, followed by the
  44. **                     equivalent of the standard UNIX wc (word
  45. **                     count) utility output of lines, words, and
  46. **                     characters.  This is produced by Robert
  47. **                     Solovay's checksum utility."
  48. **  }
  49. **
  50. **  ACKNOWLEDGEMENT
  51. **
  52. **      The original BIBTEX was written and copyrighted by Oren Patashnik
  53. **      using Donald Knuth's WEB system.  This format produces a PASCAL
  54. **      program for execution and a TeX documented version of the source
  55. **      code. This program is a hand translation of the WEB source into C.
  56. **
  57. **      The changes to support 8 bit .BIB files were originally written
  58. **      by Nicolas Brouard <Brouard@frined51.bitnet> at the Institut
  59. **      National d'Etudes D\'emographiques, PARIS.
  60. **
  61. **  COPYRIGHT
  62. **
  63. **      This implementation copyright (c) 1991-1993 by Niel Kempson.
  64. **
  65. **      This program is free software; you can redistribute it and/or
  66. **      modify it under the terms of the GNU General Public License as
  67. **      published by the Free Software Foundation; either version 1, or
  68. **      (at your option) any later version.
  69. **
  70. **      This program is distributed in the hope that it will be useful,
  71. **      but WITHOUT ANY WARRANTY; without even the implied warranty of
  72. **      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  73. **      General Public License for more details.
  74. **
  75. **      You should have received a copy of the GNU General Public License
  76. **      along with this program; if not, write to the Free Software
  77. **      Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  78. **
  79. **      In other words, you are welcome to use, share and improve this
  80. **      program.  You are forbidden to forbid anyone else to use, share
  81. **      and improve what you give them.  Help stamp out software-hoarding!
  82. **
  83. **  CHANGE LOG
  84. **
  85. **      0.00 [31-Oct-1993] Niel Kempson <kempson@snowyowl.co.uk>
  86. **          Initial 8-bit release.
  87. **      0.01 [09-Nov-1993] Niel Kempson <kempson@snowyowl.co.uk>
  88. **          Updated and more information added for BibTeX 3.01.
  89. ******************************************************************************
  90. ******************************************************************************
  91.  
  92. CONTENTS
  93. ********
  94.  
  95.     1.  INTRODUCTION
  96.       1.1  Input Translation or Codepage File
  97.       1.2  Sort Definition File
  98.     2.  DISTRIBUTION FILES
  99.       2.1  bt301dos.zip
  100.       2.2  bt301os2.zip
  101.       2.3  bt301src.zip
  102.     3.  WHAT FILES DO I NEED ?
  103.     4.  HOW TO GET 8-bit BibTeX
  104.       4.1  Internet FTP
  105.     5.  RUNNING BIBTEX
  106.     6.  REPORTING BUGS AND REQUESTING IMPROVEMENTS
  107.       6.1  Contacting the author
  108.       6.2  Possible Improvements
  109.     7.  BibTeX USE AND COPYING CONDITIONS
  110.  
  111.  
  112.  
  113. 1.  INTRODUCTION
  114. ****************
  115.  
  116. 8-bit BibTeX is an extension to the "standard" BibTeX to help it support
  117. non-English languages using 8-bit "ASCII" character sets.  The language
  118. support falls into two categories:
  119.  
  120.     a.  translation of 8-bit characters in the input files to equivalent
  121.         7-bit TeX control sequences.  For example, on an IBM PC using the
  122.         multinational code page 850, the code ^^81 represents the character
  123.         "u" with an umlaut accent.  When BibTeX reads an ^^81 character in an
  124.         input (i.e. .aux, .bib, .bst) file, it can be told to substitute that
  125.         character by the TeX control sequence `\"u'.  See the "input
  126.         translation file" section for more details.
  127.  
  128.     b.  definition of the sort order for the language.  For example, in
  129.         German, the control sequence \"o (o umlaut) should be sorted as if it
  130.         were the letter "o", but after ordinary "o", leading to this order:
  131.  
  132.             Trofer, Tr\"ofer, Trufer
  133.  
  134.         However, in Swedish, \"o (o umlaut) is treated as the 29th letter of
  135.         the alphabet and these entries would be sorted as:
  136.  
  137.             Trofer, Trufer, Tr\"ofer
  138.  
  139.         BibTeX clearly needs a way of specifying the sorting order for a
  140.         particular language.  See the "sort file" section for more details.
  141.  
  142.  
  143. 1.1  Input Translation or Codepage File
  144. ========================================
  145.  
  146. Codepage files contain two types of lines: comment lines and translation
  147. lines.
  148.  
  149. Comment Lines
  150. -------------
  151.  
  152.     Comment lines begin with percent sign and are ignored.  Blank lines are
  153.     ignored.  Any line not beginning with "^^" is also ignored.
  154.  
  155. Translation Lines
  156. -----------------
  157.  
  158.     Translation lines specify how 8-bit ASCII characters should be converted
  159.     into 7-bit TeX control sequences.  These lines must be in the format:
  160.  
  161.         ^^hex-code -> TeX-code   % comment text
  162.  
  163.     where:
  164.  
  165.         hex-code  - in the range 80-FF.  Codes not specified will be
  166.                     translated to "<?>".
  167.  
  168.         TeX-code  - any valid TeX input string using only 7-bit characters.
  169.  
  170.     For example, if the ASCII character ^^81 represents the character "u"
  171.     with an umlaut accent, an appropriate translation line would be:
  172.  
  173.         ^^81 -> \"u     % u umlaut
  174.  
  175.  
  176. By default the name of the file is "bibtex.cp" but this may be overridden by
  177. setting the environment variable "BIBTEX_CPFILE".  If the file cannot be
  178. opened in the current working directory, BibTeX will try the BibTeX style
  179. file directory referred to by TEXINPUTS.  Either of these examples would be
  180. valid on my system:
  181.  
  182.     SET BIBTEX_CPFILE=codepage.850
  183.     SET BIBTEX_CPFILE=e:\usr\c\bibtex\test\codepage.850
  184.  
  185.  
  186. 1.2  Sort Definition File
  187. =========================
  188.  
  189. NOTE: the definition of sort order hasn't yet been implemented :-(
  190.  
  191. QUESTIONS:
  192.  
  193.     a.  should the translation and sort order definitions be contained in
  194.         separate files or in a combined code page / sort order definition
  195.         file ?
  196.  
  197.         At first sight, it seems that the input translation rules reflect the
  198.         computer code page used, whereas the sort order is determined by the
  199.         language of the user.  Many European countries could use code page
  200.         850 (multinational), but the sort order may vary in important ways.
  201.  
  202.     b.  currently BibTeX sorts characters with little intelligence because it
  203.         simply compares the "raw" characters in the strings.  Taking the
  204.         example of "Comsa" & "\v{C}ade\v{z}", "C" comes before "\" in the
  205.         ASCII table so Comsa is sorted first!!
  206.  
  207.         I think the answer is to modify the search algorithm so that it
  208.         ignores any characters apart from "0-9A-za-z".  Using the previous
  209.         example, "Comsa" will be compared with "Cadez" and will be sorted
  210.         after it.
  211.  
  212.  
  213.  
  214. 2.  DISTRIBUTION FILES
  215. **********************
  216.  
  217. 8-bit BibTeX is distributed as a set of ZIP files created by the freely
  218. available implementation of ZIP by the Info-ZIP project.  The files have all
  219. been compressed using the new "deflation" algorithm and can only be
  220. compressed using the Info-ZIP implementation of UNZIP, or PKUNZIP v2.04 or
  221. later.  PKUNZIP v1.10 will not be able to unZIP the files and will complain
  222. with a message like: "PKUNZIP: Warning! I don't know how to handle:
  223. xxxxxxxx.xxx".
  224.  
  225. There are three ZIP files in the complete 8-bit BibTeX distribution:
  226.  
  227.     bt301dos.zip    bt301os2.zip    bt301src.zip
  228.  
  229. Their purpose and contents are summarised below.
  230.  
  231.  
  232. 2.1  bt301dos.zip
  233. =================
  234.  
  235. The binary + documentation kit for MS-DOS users:
  236.  
  237.     00readme.txt        this file
  238.     doc/COPYING         GNU copyright notice
  239.     doc/cp850.cp        example translation file for codepage 850
  240.     msdos/bibtex.exe    the 8-bit BibTeX program
  241.     test/test.tex       test LaTeX source
  242.     test/test.bib       test .bib file containing 8 bit ASCII characters
  243.  
  244.  
  245. 2.2  bt301os2.zip
  246. =================
  247.  
  248. The binary + documentation kit for OS/2 users:
  249.  
  250.     00readme.txt        this file
  251.     doc/COPYING         GNU copyright notice
  252.     doc/cp850.cp        example translation file for codepage 850
  253.     os2/bibtex.exe      8-bit BibTeX program for 32 bit OS/2
  254.     test/test.tex       test LaTeX source
  255.     test/test.bib       test .bib file containing 8 bit ASCII characters
  256.  
  257.  
  258. 2.3  bt301src.zip
  259. =================
  260.  
  261. Complete source code kit to build 8-bit BibTeX on all supported systems.
  262.  
  263.     00readme.txt        this file
  264.     doc/COPYING         GNU copyright notice
  265.     doc/cp850.cp        example translation file for codepage 850
  266.     test/test.tex       test LaTeX source
  267.     test/test.bib       test .bib file containing 8 bit ASCII characters
  268.  
  269.     bibtex.h            definition of global parameters and limits
  270.     datatype.h          definition of custom data types
  271.     gblprocs.h          forward declaration of all global functions
  272.     gblvars.h           declaration of global variables
  273.     sysdep.h            determine the compiler and environment
  274.  
  275.     bibtex.c            main source including system dependent code
  276.     bibtex-1.c          part 1 of the system independent functions
  277.     bibtex-2.c          part 2 of the system independent functions
  278.     bibtex-3.c          part 3 of the system independent functions
  279.     bibtex-4.c          part 4 of the system independent functions
  280.  
  281.     os2.mak             makefile for various OS/2 compilers
  282.     os2msdos.mak        OS/2 makefile to build DOS executables
  283.  
  284.  
  285.  
  286. 3.  WHAT FILES DO I NEED ?
  287. **************************
  288.  
  289. Although there are three ZIP files in the master distribution, it's most
  290. unlikely that you will want them all.  The most likely requirements are
  291. summarised below, along with the files that I recommended you to fetch.
  292.  
  293.     Q.  I want to be able to use 8-bit BibTeX.  I'm not interested in
  294.         building from sources, I just want a program.  What do I need ?
  295.  
  296.     A.  "Load and go" kits containing executables and help files are
  297.         available for:
  298.  
  299.             MS-DOS      bt301dos.zip
  300.             OS/2        bt301os2.zip
  301.  
  302.  
  303.     Q.  I want to build 8-bit BibTeX from source code.  What do I need ?
  304.  
  305.     A.  You need "bt301src.zip".
  306.  
  307.  
  308.     Q.  I want to port 8-bit BibTeX to another environment.  What do I need ?
  309.  
  310.     A.  Firstly, a vote of thanks.  You'll need everything for building
  311.         from source code.  Please also contact the author so that he can
  312.         provide as much help as possible.  The source code doesn't contain
  313.         any system-specific items and should very easily port to Unix or
  314.         VAX/VMS.
  315.  
  316.  
  317.  
  318. 4.  HOW TO GET 8-bit BibTeX
  319. ***************************
  320.  
  321. 8-bit BibTeX is available via Internet FTP:
  322.  
  323.  
  324.     Host:               ftp.tex.ac.uk
  325.     Directory:          tex-archive/biblio/bibtex/kempson/8bit-beta
  326.     File to get first:  00readme.txt (this file)
  327.  
  328.  
  329.  
  330. 5.  RUNNING BIBTEX
  331. ******************
  332.  
  333. In case you're used to emTeX, 8-bit BibTeX currently uses these environment
  334. variables when opening files:
  335.  
  336.     .aux files -  BibTeX attempts to open the file in the current working
  337.                   directory.  If the open fails, an error is reported.
  338.  
  339.     .bib files -  BibTeX attempts to open the file in the current working
  340.                   directory.  If the open fails, the translation of the DOS
  341.                   environment variable TEXBIB is prepended to the file name.
  342.                   If this open fails, an error is reported.
  343.  
  344.     .bst files -  BibTeX attempts to open the file in the current working
  345.                   directory.  If the open fails, the translation of the DOS
  346.                   environment variable TEXINPUTS is prepended to the file
  347.                   name.  If this open fails, an error is reported.
  348.  
  349.     .cp files  -  BibTeX attempts to open the file in the current working
  350.                   directory.  If the open fails, the translation of the DOS
  351.                   environment variable TEXINPUTS is prepended to the file
  352.                   name.  If this open fails, an error is reported.
  353.  
  354. The translations of these environment variables must be suitable for
  355. prepending to a file name and extension.   If the translated string does not
  356. end in a '\' or ':', a '\' is added.  Some valid examples of SETting these
  357. variables are:
  358.  
  359.     SET TEXINPUTS=c:\tex\inputs\
  360.     SET TEXINPUTS=c:\tex\inputs
  361.     SET TEXINPUTS=f:
  362.  
  363. Because the environment variable must be suitable for prepending, search
  364. paths are not permitted.  Examples of invalid SETs are:
  365.  
  366.     SET TEXINPUTS=c:\tex\inputs;d:\latex
  367.     SET TEXINPUTS=c:\tex\inputs\;f:\tmp
  368.  
  369.  
  370.  
  371. 6.  REPORTING BUGS AND REQUESTING IMPROVEMENTS
  372. **********************************************
  373.  
  374.  
  375. 6.1  Contacting the author
  376. ==========================
  377.  
  378. The author will try to fix bugs where possible and will consider requests for
  379. improvements.  If you are reporting a bug, please provide as much information
  380. as possible (e.g. operating environment,  8-bit BibTeX version and source,
  381. exact error message and the offending files if possible).  The most common
  382. message is of the form "BibTeX doesn't work on XXXX"; such a message will
  383. result in a request for you to provide as much information as possible.
  384.  
  385. The implementor of this 8-bit BibTeX is:
  386.  
  387.     Niel Kempson
  388.     25 Whitethorn Drive, Cheltenham, GL52 5LL, England
  389.     E-mail: kempson@snowyowl.co.uk (Internet)
  390.  
  391.  
  392. 6.2  Possible Improvements
  393. ==========================
  394.  
  395. These changes would make this port of BibTeX a lot better:
  396.  
  397.     o   support command line options to specify code page file, memory
  398.         capacity options etc;
  399.  
  400.     o   use the same environment variables as emTeX;
  401.  
  402.     o   support 8 bit output;
  403.  
  404.     o   implement a customisable sorting order.
  405.     
  406. The first three are relatively easy, but the fourth is really quite
  407. awkward.  At the moment, all characters are sorted using simple ASCII
  408. values for comparison, not the "proper" order of the national alphabet.
  409.  
  410. I haven't used BibTeX seriously for several years and I've forgotten most of
  411. the lessons I learned while porting it, so I'm not likely to be making these
  412. improvements myself.  However, if you feel up to the challenge, please feel
  413. welcome to use my source code as a starting point.  You'll have to conform to
  414. the original use and copying conditions below, just as I do.
  415.  
  416.  
  417. 7.  BibTeX USE AND COPYING CONDITIONS
  418. *************************************
  419.  
  420. The programs currently being distributed that relate to 8-bit BibTeX are
  421. *free*;  this means that everyone may use them and redistribute them freely.
  422. The 8-bit BibTeX-related programs are not in the public domain;  they are
  423. copyrighted and there are restrictions on their distribution, but these
  424. restrictions are designed to permit everything that a good cooperating
  425. citizen would want to do.  What is not allowed is to try to prevent others
  426. from further sharing any version of these programs that they might get from
  427. you.
  428.  
  429. Specifically, we want to make sure that you have the right to give away
  430. copies of the programs that relate to 8-bit BibTeX, that you receive source
  431. code or else can get it if you want it, that you can change these programs or
  432. use pieces of them in new free programs, and that you know you can do these
  433. things.
  434.  
  435. To make sure that everyone has such rights, we have to forbid you to deprive
  436. anyone else of these rights.  For example, if you distribute copies of the
  437. 8-bit BibTex related programs, you must give the recipients all the rights
  438. that you have.  You must make sure that they, too, receive or can get the
  439. source code.  And you must tell them their rights.
  440.  
  441. Also, for our own protection, we must make certain that everyone finds out
  442. that there is no warranty for the programs that relate to 8-bit BibTeX.  If
  443. these programs are modified by someone else and passed on, we want their
  444. recipients to know that what they have is not what we distributed, so that
  445. any problems introduced by others will not reflect on our reputation.
  446.  
  447. The precise conditions of the licences for the programs currently being
  448. distributed that relate to 8-bit BibTeX are found in the General Public
  449. Licences that accompany them.
  450.  
  451. ******************************** END OF FILE *******************************
  452.